<template>
	<view>
		<cu-custom :bgColor="'bg-white'" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">团队</block>
		</cu-custom>
		
		<xg-waterfall  :column-count="2" >
		    <xg-waterfall-header>
			
		    </xg-waterfall-header>
		    <xg-waterfall-item v-for="(item,k) in team" :key="index">
				<view class="bg-white margin-xs radius" @tap="detail" :data-id="item.id">
					<image :src="item.pic" class="radius" mode="aspectFill" style="width: 400rpx;height: 390rpx;"></image>
					<view class="text-bold text-black padding-tb-sm">
						{{item.name}}
					</view>
					
				</view>
				
		    </xg-waterfall-item>
		    <xg-waterfall-footer>
				
		    </xg-waterfall-footer>
		</xg-waterfall>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				team:[]
			}
		},
		onLoad() {
			this.getTeam();
		},
		methods: {
			getTeam() {
				const _this = this;
				_this.$apiResquest({
					url: 'cms/team',
					method: 'GET'
				}).then(function(res) {
					console.log(123)
					_this.team = res.data;
			
				})
			},
		}
	}
</script>

<style>

</style>
